﻿using System;
using VsxTools.UtilityTypes;

namespace VsxTools.Attributes
{
    [AttributeUsage(AttributeTargets.Class)]
    public sealed class InitialCaptionAttribute : StringAttribute
    {
        public InitialCaptionAttribute(string value) : base(value)
        {
        }
    }

    [AttributeUsage(AttributeTargets.Class)]
    public sealed class BitmapResourceIdAttribute : Attribute
    {
        private readonly int _resourceId;
        private readonly int _bitmapIndex;

        public BitmapResourceIdAttribute(int resourceId) : this(resourceId, 1)
        {
        }

        public BitmapResourceIdAttribute(int resourceId, int bitmapIndex)
        {
            _resourceId = resourceId;
            _bitmapIndex = bitmapIndex;
        }

        public int ResourceId
        {
            get { return _resourceId; }
        }

        public int BitmapIndex
        {
            get { return _bitmapIndex; }
        }
    }
}
